function fn1(a,b,text) {
    var show = false;
    document.querySelector(a).onclick = function () {
        if (show) {
            document.querySelector(b).style.display = 'none';
        } else {
            document.querySelector(b).style.display = 'block';
            if(text){
                
            document.querySelector(b).querySelector('p').innerHTML = text;
            }
        }
        show = !show;
    }

}
fn1('#fit','#fitEject');
fn1('#account','#modal','确定注销账户吗？');
fn1('#record','#modal','确定退出登录吗？');
fn1('.open','#modal');
fn1('.open1','#modal');

